import Vue from 'vue'

import VueRouter from 'vue-router'
Vue.use(VueRouter)
//导入 router 模块
import router from './router.js'

//导入 vue-resource
import VueResource from 'vue-resource'
//安装路由
Vue.use(VueResource)


//按需导入 Mint-UI 组件
import { Header ,Swipe, SwipeItem} from 'mint-ui'

Vue.component(Header.name, Header)
//轮播组件
Vue.component(Swipe.name, Swipe);
Vue.component(SwipeItem.name, SwipeItem);

import './lib/mui-master/dist/css/mui.min.css'
import './lib/mui-master/dist/css/icons-extra.css'

import app from './App.vue'



var vm =new Vue({
    el:'#app',
    render: c=> c(app),
    router
})
